package org.yang.plugins.resource.exception;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.yang.plugins.resource.serializer.Auth2ExceptionSerializer;

/**
 *
 *
 * @author: lslands
 * @version: v2.0
 * @create: 2021/6/14 22:31
 **/
@JsonSerialize(using = Auth2ExceptionSerializer.class)
public class InvalidException extends Auth2Exception {

    public InvalidException(String msg, Throwable t) {
        super(msg);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "invalid_exception";
    }

    @Override
    public int getHttpErrorCode() {
        return 426;
    }

}
